package com.woniuxy.tfss.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniuxy.tfss.entity.Category;
import com.woniuxy.tfss.entity.Information;
import com.woniuxy.tfss.mapper.CategoryMapper;
import com.woniuxy.tfss.mapper.InformationMapper;
import com.woniuxy.tfss.service.CategoryService;
import com.woniuxy.tfss.service.InformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class InformationServiceImpl extends ServiceImpl<InformationMapper, Information> implements InformationService {
    @Autowired
    private InformationMapper informationMapper;

    @Override
    public List<Information> getByUserId(Integer userId) {
        return informationMapper.getByUserId(userId);
    }

    @Override
    public List<Information> getByRiderId(Integer riderId) {
        return informationMapper.getByRiderId(riderId);
    }
}
